package com.example.testrest;

import java.io.IOException;

import org.restlet.resource.ClientResource;
import org.restlet.resource.ResourceException;

import restlet.interfaces.BeneffitResourceI;
import beans.BeneffitBean;

public class TestBeneffit {
	public static void main(String[] args) throws ResourceException,
			IOException {

		String ID = 30 + "";

		ClientResource cr = new ClientResource(
				"http://localhost:8080/rest/beneffit/" + ID);
		BeneffitResourceI placesResourceI = cr.wrap(BeneffitResourceI.class);
		BeneffitBean beneffit = placesResourceI.getBeneffitByID();

		System.out.println(beneffit);

	}
}
